package clinsistem.a.IU;

import javax.swing.AbstractAction;
import javax.swing.InputMap;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.KeyStroke;

import java.awt.BorderLayout;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.JSeparator;

public class TelaPesquisaConvenio extends JInternalFrame {

	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Create the frame.
	 */
	public TelaPesquisaConvenio() {
		setClosable(true);
		setIconifiable(true);
		setTitle("Pesquisar Conv\u00EAnio");
		setBounds(0, 0, 800, 610);
		
		JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_1 = new JPanel();
		panel.add(panel_1, BorderLayout.CENTER);
		panel_1.setLayout(null);
		
		JLabel lblPesquisarConvnio = new JLabel("Pesquisar Conv\u00EAnio");
		lblPesquisarConvnio.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblPesquisarConvnio.setBounds(10, 11, 159, 20);
		panel_1.add(lblPesquisarConvnio);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(0, 42, 784, 2);
		panel_1.add(separator);

		this.getActionMap().put("exit", new AbstractAction(){
			 
            public void actionPerformed(ActionEvent e) {
                dispose();
 
            }
        });
        InputMap map = this.getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
        KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
        map.put(stroke,"exit");
	}

}
